test: libString.o avlTree.o word.o  main.o
	cc -Wall -o test libString.o avlTree.o word.o  main.o

libString.o: ../../CommonLib/libString.c ../../CommonLib/libString.h
	cc -Wall -c ../../CommonLib/libString.c

avlTree.o: ../../AvlTree/avlTree.c ../../AvlTree/avlTree.h ../../CommonLib/libMath.h
	cc -Wall -c ../../AvlTree/avlTree.c 

word.o: word.c word.h
	cc -Wall -c word.c

main.o: main.c ../../CommonLib/libString.h ../../AvlTree/avlTree.h word.h
	cc -Wall -c main.c

clean:
	rm *.exe *.o 
